// pages/framework/index.js
const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    nickName: "",
    avatarUrl: "",
  },
  onLoad() {
    this.setData({
      nickName: app.nickName,
      avatarUrl: app.avatarUrl,
    });
  },
  changeName() {
    app.changeNickName("404.");
    this.setData({
      nickName: app.nickName,
    });
  },
});
